package com.tjut.oop.hol6;

public class Computer extends Student {
	// 新增属性：操作能力
	private double operate;
	// 新增属性：英语写作
	private double writing;

	@Override
	public void showAll() {
		super.showAll();
		setStuGrade(operate * 0.4 + writing * 0.2 + getFinalTerm() * 0.2 + getMidTerm() * 0.2);
		System.out.println("学生总成绩为：" + getStuGrade());
	}

	public Computer(double operate, double writing, int stuAge,String stuNam, int stuNum, String stuGen, double midTerm,
			double finalTerm) {
		super(stuAge,stuNam, stuNum, stuGen, midTerm, finalTerm);
		this.operate = operate;
		this.writing = writing;
	}

}
